package chixing.day10.work;

public class PersonalOrder extends Order{
    private String personalDetails;

    @Override
    public void processOrder() {
        // 个人订单特定的处理逻辑
    }

    @Override
    protected Order createSplitOrder(int quantity) {
        PersonalOrder newOrder = new PersonalOrder();
        newOrder.orderId = this.orderId + "-split"; // 生成新的订单ID
        newOrder.quantity = quantity;
        newOrder.customerInfo = this.customerInfo;
        newOrder.personalDetails = this.personalDetails;
        return newOrder;
    }

    public String getPersonalDetails() {
        return personalDetails;
    }

    public void setPersonalDetails(String personalDetails) {
        this.personalDetails = personalDetails;
    }
}
